////////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2008 Michiel Helvensteijn                                    //
//                                                                            //
// This file is part of the Mist compiler.                                    //
//                                                                            //
// The Mist compiler is free software: you can redistribute it and/or modif   //
// it under the terms of the GNU General Public License as published by       //
// the Free Software Foundation, either version 3 of the License, or          //
// (at your option) any later version.                                        //
//                                                                            //
// The Mist compiler is distributed in the hope that it will be useful,       //
// but WITHOUT ANY WARRANTY; without even the implied warranty of             //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              //
// GNU General Public License for more details.                               //
//                                                                            //
// You should have received a copy of the GNU General Public License          //
// along with the Mist compiler.  If not, see <http://www.gnu.org/licenses/>. //
////////////////////////////////////////////////////////////////////////////////

#ifndef UNIVERSALNAVIGATOR_HPP
#define UNIVERSALNAVIGATOR_HPP

/******************************************************************************
 * Includes                                                                   *
 ******************************************************************************/

#include <boost/shared_ptr.hpp>
using boost::shared_ptr;

#include "visitors/expressionnavigator.hpp"
#include "messages.hpp"

/******************************************************************************
 * UniversalNavigator Class                                                   *
 ******************************************************************************/

class UniversalNavigator : public ExpressionNavigator {
	public:
		
		void visit(shared_ptr<ArrayType>           node);
		void visit(shared_ptr<FunctionType>        node);
		void visit(shared_ptr<VariableDeclaration> node);
		void visit(shared_ptr<FunctionDeclaration> node);
		void visit(shared_ptr<RangeType>           node);
		void visit(shared_ptr<CompoundStatement>   node);
		
		void visit(shared_ptr<Identifier>          node) {}
		void visit(shared_ptr<IntegerType>         node) {}
		void visit(shared_ptr<BooleanType>         node) {}
		void visit(shared_ptr<VoidType>            node) {}
		void visit(shared_ptr<TypeError>           node) {}
	
	protected:
		
		UniversalNavigator(shared_ptr<Messages> messages = shared_ptr<Messages>()) : ExpressionNavigator(messages) {}
};

#endif // UNIVERSALNAVIGATOR_HPP
